# coding:utf-8
'''
author:wangyi
'''


from selenium import webdriver
from selenium.webdriver.firefox.options import Options
# options = Options()
# options.headless = True
profile = webdriver.FirefoxProfile()
profile.set_preference('network.proxy.type',0)
browser = webdriver.Firefox(executable_path='/home/abc/Downloads/geckodriver',firefox_profile=profile)

browser.get('https://koreamed.org/articles/0117gni/16/4')

first_sub_node = browser.find_element_by_xpath('//*[@id="app"]/div[11]/main/div/div/div/div/div[2]/div[2]/div/div[1]/div/div/div/div[1]/div/div[1]')

first_sub_node.click()

all_node_check = browser.find_element_by_xpath('//*[@id="app"]/div[11]/main/div/div/div/div/div[2]/div[2]/div[1]/button[1]/div')

all_node_check.click()
#
# down_load_btn = browser.find_element_by_xpath('//*[@id="app"]/div[11]/main/div/div/div/div/div[2]/div[3]/div/div[1]/div/ul/li/div[2]/div/div/div/div[1]/div/a')
#
# down_load_btn.click()
